package com.pig4cloud.pig.module.api.entity.charger;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 充电设备收费规则对象 charger_power_role
 *
 * @author ruoyi
 * @date 2022-06-29
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("charger_power_role")
public class ChargerPowerRole implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 类型 0 - 按照功率算的  1 - 按照每度电的价格来算的
     */
    private Integer roleType;
    /**
     * 所属省份
     */
    private String prov;

    /**
     * 所属城市
     */
    private String city;

	/**
	 *  所属区县
	 */
	private String district;

    /**
     *  所属小区
     */
	private Integer estateId;

    /**
     *  是否是绑定小区的 0 - 不是 1 - 绑定小区的
     */
	private Integer isEstate;

    /**
     * 规则编号
     */
    private String roleNum;

    /**
     * 规则名称
     */
    private String roleName;

    /**
     * 当前规则的最小值
     */
    private BigDecimal minPower;

    /**
     * 当前规则的上限
     */
    private BigDecimal maxPower;

    /**
     * 单价
     */
    private BigDecimal singlePriceHour;

    /**
     * $column.columnComment
     */
    private Integer state;

    /**
     *  是否是默认
     */
    private Integer isDefault;

    private Integer oneBuyHour;

    /**
     *  每度电费用
     */
    private BigDecimal chargerSinglePrice;
    /**
     *  1元 充多少度电
     */
    private BigDecimal  chargerOneCapacityPrice;

	/**
	 *  备注信息
	 */
	private String remark;

	@TableField(exist = false)
	private String[] provinceArray;



	@TableField(exist = false)
	private String provName;


	@TableField(exist = false)
	private String cityName;


	@TableField(exist = false)
	private String districtName;
}
